#ifndef __BSP_SYSTICK_H__
#define __BSP_SYSTICK_H__


#include "config.h"


#define MAX_SOFT_TIMER 8 //利用系统滴答定时器实现软件定时器的个数


extern uint32_t sysTimer[MAX_SOFT_TIMER];


#define DelayTimer 					    sysTimer[0]  //延时定时
#define Usart1RecTimer 					sysTimer[1] //串口1接收定时器，如果超时，表示一帧接收完
#define Usart2RecTimer 					sysTimer[2]
#define Usart3RecTimer 					sysTimer[3]
#define Uart4RecTimer					sysTimer[4]
#define Uart5RecTimer					sysTimer[5]


void SysTick_Init(void);
void SysTick_DelayMs(uint32 nms);
void SysTick_DelayUs(uint32 nus);

extern uint32_t g_iRunTimer;




#endif



